package org.metasketch.editor.toolbox;

public class InheritedRelation extends SimpleRelation {

	public InheritedRelation() {

	}

	public InheritedRelation(Class childType, Class parentType,
			String childFieldname, String parentFieldname) {
		super(childType, parentType, childFieldname, parentFieldname);
	}

	public boolean isCompatible(Class argChildType, Class argParentType) {
		if (childType.isAssignableFrom(argChildType)
				&& parentType.isAssignableFrom(argParentType))
			return true;

		return false;
	}

}
